package com.qdc.datacenters.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;


/**
 * 企业信息表(SysCorp)表实体类
 *
 * @author danmo
 * @since 2024-02-27 18:44:20
 */
@Schema
@Data
@SuppressWarnings("serial")
@TableName("sys_corp")
public class SysCorp extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 936991105422352182L;

    /**
     * 主键ID
     */

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 企业ID
     */
    @Schema(description = "企业ID")
    @TableField("corp_id")
    private String corpId;


    /**
     * 企业名称
     */
    @Schema(description = "企业名称")
    @TableField("corp_name")
    private String corpName;


    /**
     * 应用ID
     */
    @Schema(description = "应用ID")
    @TableField("agent_id")
    private Integer agentId;


    /**
     * 应用秘钥
     */
    @Schema(description = "应用秘钥")
    @TableField("agent_secret")
    private String agentSecret;


    /**
     * 会话存档秘钥
     */
    @Schema(description = "会话存档秘钥")
    @TableField("chat_secret")
    private String chatSecret;

    /**
     * 回调token
     */
    @Schema(description = "回调token")
    @TableField("token")
    private String token;

    /**
     * 回调EncodingAESKey
     */
    @Schema(description = "回调EncodingAESKey")
    @TableField("encoding_aes_key")
    private String encodingAesKey;

    @Schema(description = "消息解密公钥")
    @TableField("encrypt_public_key")
    private String encryptPublicKey;

    @Schema(description = "消息解密私钥")
    @TableField("encrypt_random_key")
    private String encryptRandomKey;

    @Schema(description = "消息解密私钥版本号")
    @TableField("encrypt_version")
    private Integer encryptVersion;

    @Schema(description = "存档状态 0-关闭 1-开启")
    @TableField("archive_status")
    private Integer archiveStatus;
}

